import os
import sys
import django

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.extend([BASE_DIR, ])
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "finance_c2c.settings")
django.setup()

from django.contrib.auth import get_user_model

User = get_user_model()


def edit_psw():
    user = User.objects.get(username="18612386233")
    user.set_password("123456")
    user.save()


if __name__ == '__main__':
    edit_psw()
